.class public Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/waiqin365/base/triallogin/b;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/ListView;

.field private e:Lcom/waiqin365/base/triallogin/a/a;

.field private f:Ljava/util/ArrayList;

.field private g:Ljava/lang/String;

.field private h:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->g:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->h:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    return-object p1
.end method

.method private a()V
    .locals 2

    const v0, 0x7f0c002f

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0031

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0032

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->d:Landroid/widget/ListView;

    new-instance v0, Lcom/waiqin365/base/triallogin/a/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/triallogin/a/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->e:Lcom/waiqin365/base/triallogin/a/a;

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->d:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->e:Lcom/waiqin365/base/triallogin/a/a;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->d:Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/base/triallogin/a;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/triallogin/a;-><init>(Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;)Lcom/waiqin365/base/triallogin/a/a;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->e:Lcom/waiqin365/base/triallogin/a/a;

    return-object v0
.end method

.method private b()V
    .locals 3

    new-instance v0, Lcom/waiqin365/base/triallogin/b/a/b;

    invoke-direct {v0}, Lcom/waiqin365/base/triallogin/b/a/b;-><init>()V

    new-instance v1, Lcom/waiqin365/base/triallogin/b/d;

    iget-object v2, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->a:Lcom/waiqin365/base/triallogin/b;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/base/triallogin/b/d;-><init>(Landroid/os/Handler;Lcom/waiqin365/base/triallogin/b/a;)V

    invoke-virtual {v1}, Lcom/waiqin365/base/triallogin/b/d;->start()V

    return-void
.end method

.method private c()V
    .locals 3

    const-string/jumbo v0, "trial_industryid"

    const-string/jumbo v1, ""

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;

    iget-object v0, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->a:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->d:Z

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->e:Lcom/waiqin365/base/triallogin/a/a;

    iget-object v1, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/triallogin/a/a;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->e:Lcom/waiqin365/base/triallogin/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/base/triallogin/a/a;->notifyDataSetChanged()V

    return-void

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->c()V

    return-void
.end method

.method private d()V
    .locals 5

    const/4 v2, 0x0

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;

    iget-boolean v0, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->d:Z

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;

    iget-object v0, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->a:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->g:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;

    iget-object v0, v0, Lcom/waiqin365/base/triallogin/model/TrialBusinessInfo;->c:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->h:Ljava/lang/String;

    :cond_0
    const-string/jumbo v0, "trial_industryid"

    const-string/jumbo v1, ""

    invoke-static {p0, v0, v1}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->g:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->h:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->g:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->finish()V

    :cond_2
    return-void

    :cond_3
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_4
    const/4 v0, 0x1

    invoke-static {p0, v0}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Z)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    new-instance v1, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v3, "trial_industryid"

    iget-object v4, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->g:Ljava/lang/String;

    invoke-direct {v1, v3, v4}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v3, "trial_industry_name"

    iget-object v4, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->h:Ljava/lang/String;

    invoke-direct {v1, v3, v4}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {p0, v0}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/util/ArrayList;)V

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-class v1, Lcom/waiqin365/base/login/LoginSplashActivity;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->overridePendingTransition(II)V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v1, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v3

    :goto_1
    if-ge v2, v3, :cond_2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_5

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    :cond_5
    add-int/lit8 v2, v2, 0x1

    goto :goto_1
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->back()V

    goto :goto_0

    :pswitch_2
    invoke-direct {p0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->d()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c002f
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    new-instance v0, Lcom/waiqin365/base/triallogin/b;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/triallogin/b;-><init>(Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;)V

    iput-object v0, p0, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->a:Lcom/waiqin365/base/triallogin/b;

    const v0, 0x7f030004

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->setContentView(I)V

    invoke-direct {p0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/base/triallogin/TrialChangeIndustryActivity;->b()V

    return-void
.end method
